home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / webbrwsr / nsIEmbeddingSiteWindow2.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  101 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIEmbeddingSiteWindow2.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIEmbeddingSiteWindow2_h__
  6. #define __gen_nsIEmbeddingSiteWindow2_h__
  7.  
  8.  
  9. #ifndef __gen_nsIEmbeddingSiteWindow_h__
  10. #include "nsIEmbeddingSiteWindow.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIEmbeddingSiteWindow2 */
  19. #define NS_IEMBEDDINGSITEWINDOW2_IID_STR "e932bf55-0a64-4beb-923a-1f32d3661044"
  20.  
  21. #define NS_IEMBEDDINGSITEWINDOW2_IID \
  22.   {0xe932bf55, 0x0a64, 0x4beb, \
  23.     { 0x92, 0x3a, 0x1f, 0x32, 0xd3, 0x66, 0x10, 0x44 }}
  24.  
  25. /**
  26.  * The nsIEmbeddingSiteWindow is implemented by the embedder to provide
  27.  * Gecko with the means to call up to the host to perform basic windowing
  28.  * operations such as resizing and showing.
  29.  *
  30.  * Changes from version 1 to version 2:
  31.  * A new method: blur()
  32.  */
  33. class NS_NO_VTABLE nsIEmbeddingSiteWindow2 : public nsIEmbeddingSiteWindow {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IEMBEDDINGSITEWINDOW2_IID)
  37.  
  38.   /**
  39.      * Blur the window. This should unfocus the window and send an onblur event.
  40.      */
  41.   /* void blur (); */
  42.   NS_IMETHOD Blur(void) = 0;
  43.  
  44. };
  45.  
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSIEMBEDDINGSITEWINDOW2 \
  48.   NS_IMETHOD Blur(void); 
  49.  
  50. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  51. #define NS_FORWARD_NSIEMBEDDINGSITEWINDOW2(_to) \
  52.   NS_IMETHOD Blur(void) { return _to Blur(); } 
  53.  
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  55. #define NS_FORWARD_SAFE_NSIEMBEDDINGSITEWINDOW2(_to) \
  56.   NS_IMETHOD Blur(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Blur(); } 
  57.  
  58. #if 0
  59. /* Use the code below as a template for the implementation class for this interface. */
  60.  
  61. /* Header file */
  62. class nsEmbeddingSiteWindow2 : public nsIEmbeddingSiteWindow2
  63. {
  64. public:
  65.   NS_DECL_ISUPPORTS
  66.   NS_DECL_NSIEMBEDDINGSITEWINDOW2
  67.  
  68.   nsEmbeddingSiteWindow2();
  69.  
  70. private:
  71.   ~nsEmbeddingSiteWindow2();
  72.  
  73. protected:
  74.   /* additional members */
  75. };
  76.  
  77. /* Implementation file */
  78. NS_IMPL_ISUPPORTS1(nsEmbeddingSiteWindow2, nsIEmbeddingSiteWindow2)
  79.  
  80. nsEmbeddingSiteWindow2::nsEmbeddingSiteWindow2()
  81. {
  82.   /* member initializers and constructor code */
  83. }
  84.  
  85. nsEmbeddingSiteWindow2::~nsEmbeddingSiteWindow2()
  86. {
  87.   /* destructor code */
  88. }
  89.  
  90. /* void blur (); */
  91. NS_IMETHODIMP nsEmbeddingSiteWindow2::Blur()
  92. {
  93.     return NS_ERROR_NOT_IMPLEMENTED;
  94. }
  95.  
  96. /* End of implementation class template. */
  97. #endif
  98.  
  99.  
  100. #endif /* __gen_nsIEmbeddingSiteWindow2_h__ */
  101.